package com.wy.Service.impl;

import com.wy.Service.DanyuanService;
import com.wy.Service.DengjService;
import com.wy.dao.DanyuanDao;
import com.wy.dao.DengjDao;
import com.wy.pojo.Danyuan;
import com.wy.pojo.Dengj;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service("dengjnServer")
@Transactional
public class DengjServerimpl implements DengjService {
    @Resource
    private DengjDao dengjDao;

    @Override
        public List<Dengj> searchidAll(Integer huzuid) {
        return dengjDao.searchidAll(huzuid);
    }

    @Override
    public void del(Integer id) {
        dengjDao.deleteById(id);
    }
    @Override
    public void add(Dengj dengj) {
        dengjDao.save(dengj);
    }



}
